﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BusInfManager.aspx.cs" Inherits="GuoTao.Web.Admin.BusInfManager" %>
<%@ Import Namespace="GuoTao.DBUtility" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<link href="inc/dv.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
	background-color: #CAD7F7;
}
-->
</style>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>汽车分类管理</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table  width="85%" border="0" cellspacing="1" cellpadding="0"  align=center class="tableBorder">
  <tr> 
<th height=24 colspan=2><B>汽车产品管理</B></th>
</tr>
  <tr>
    <td style="height: 157px"><table width="100%" border="0" cellspacing="1" cellpadding="0" align="center" bordercolorlight="#ceceff" bordercolordark="#ecf5ff">
      <tr>
        <td colspan="8" align="center" class="STYLE2">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="8" height="0"> </td>
      </tr>
      <tr  bgcolor="#A3B2CC">
        <td width="6%" align="center" bgcolor="#B8DEDC">ID</td>
		<td width="22%" align="center" bgcolor="#B8DEDC"><span class="forumrow">汽车名称</span></td>
        <td width="22%" align="center" bgcolor="#B8DEDC"><span class="forumrow">类别名称</span></td>
        <td width="13%" align="center" bgcolor="#B8DEDC"><span class="forumrow">汽车价钱</span></td>
		<td width="24%" align="center" bgcolor="#B8DEDC"><span class="forumrow">添加时间</span></td>
        <td width="13%" align="center" bgcolor="#B8DEDC">编辑</td>
      </tr>

	   <tr>
        <td height="24" align="right" bgcolor="" class="forumrow">1</td>
		<td height="24" align="center" bgcolor="" class="forumrow">宾利豪华车</td>
        <td  height="24" align="center" bgcolor="" class="forumrow">豪华车</td>
        <td  height="24" align="center" bgcolor="" class="forumrow">1000万</td>
		<td width="24%" align="center" class="forumrow"><span class="forumrow">2007-12-14 10：15</span></td>
	    <td  align="center" bgcolor="" class="forumrow"><a href="#" target=mainFrame onClick="if(confirm('确定修改吗？')){return true;}else{return false;}" >修改</a><a href="#" target=mainFrame onClick="if(confirm('确定删除吗？')){return true;}else{return false;}" >|删除</a></td>
	   </tr>

	   <tr>
        <td height="24" align="right" bgcolor="" class="forumrow">2</td>
        <td  height="24" align="center" bgcolor="" class="forumrow">奔驰350</td>
        <td  height="24" align="center" bgcolor="" class="forumrow">商务车</td>
		<td  height="24" align="center" bgcolor="" class="forumrow">600万</td>
		<td width="24%" align="center" class="forumrow"><span class="forumrow">2007-12-14 10：15</span></td>
	    <td  align="center" bgcolor="" class="forumrow"><a href="#" target=mainFrame onClick="if(confirm('确定修改吗？')){return true;}else{return false;}" >修改</a><a href="#" target=mainFrame onClick="if(confirm('确定删除吗？')){return true;}else{return false;}" >|删除</a></td>
	   </tr>
	   
	   	   <tr>
        <td height="24" align="right" bgcolor="" class="forumrow">3</td>
        <td  height="24" align="center" bgcolor="" class="forumrow">别克1230</td>
        <td  height="24" align="center" bgcolor="" class="forumrow">商务车</td>
		        <td  height="24" align="center" bgcolor="" class="forumrow">500万</td>
		        <td width="24%" align="center" class="forumrow"><span class="forumrow">2007-12-14 10：15</span></td>
	    <td  align="center" bgcolor="" class="forumrow"><a href="#" target=mainFrame onClick="if(confirm('确定修改吗？')){return true;}else{return false;}" >修改</a><a href="#" target=mainFrame onClick="if(confirm('确定删除吗？')){return true;}else{return false;}" >|删除</a></td>
	   </tr>
   </table>
   </td>
  </tr>

</table>
    </div>
        <table align="center" border="0" cellpadding="0" cellspacing="1" class="tableBorder"
            width="85%">
            <tr>
                <th colspan="2" height="24">
                    <b>汽车产品管理</b></th>
            </tr>
            <tr>
                <td style="height: 157px">
                    <asp:GridView ID="GridView1" runat="server" align="center" AllowPaging="True" AllowSorting="True"
                        AutoGenerateColumns="False" border="0" bordercolordark="#ecf5ff" bordercolorlight="#ceceff"
                        CellPadding="0" CellSpacing="1" DataKeyNames="busid" GridLines="None" 
                        PageSize="5" Width="100%" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" OnRowDeleting="GridView1_RowDeleting" OnRowUpdated="GridView1_RowUpdated" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" OnRowDataBound="GridView1_RowDataBound" OnRowCancelingEdit="GridView1_RowCancelingEdit">
                        <Columns>
                            <asp:TemplateField HeaderText="ID">
                                <EditItemTemplate>
                                    <asp:Label ID="lblbusid" runat="server" Text='<%# Eval("busid") %>'></asp:Label>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lblbusid" runat="server" Text='<%# Eval("busid") %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="forumrow" Width="30px" />
                                <HeaderStyle BackColor="#B8DEDC" CssClass="forumrow" ForeColor="Black" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="汽车名称">
                                <EditItemTemplate>
                                    <asp:TextBox ID="txtbusname" runat="server" Text='<%# Eval("busname") %>' Width="100px"></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lblbigclassname" runat="server" Text='<%# Eval("busname") %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="forumrow" Width="100px" />
                                <HeaderStyle BackColor="#B8DEDC" CssClass="forumrow" ForeColor="Black" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="类别名称">
                                <EditItemTemplate>
                                    <asp:DropDownList ID="Dpbigclassid" runat="server">
                                    </asp:DropDownList>
                                    <asp:Label ID="lblbigclassid" runat="server" Text='<%# Eval("bigclassid") %>' Visible=false></asp:Label>
                                </EditItemTemplate>
                                <ItemTemplate>
                                <asp:Label ID="lblbigclassid" runat="server" Text='<%# Eval("bigclassid") %>'  Visible=false></asp:Label>
                                <asp:DropDownList ID="Dpbigclassid" runat="server">
                                    </asp:DropDownList>
                                </ItemTemplate>
                                <ItemStyle CssClass="forumrow" Width="100px" />
                                <HeaderStyle BackColor="#B8DEDC" CssClass="forumrow" ForeColor="Black" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="价钱">
                                <EditItemTemplate>
                                    <asp:TextBox ID="txtbusprice" runat="server" Text='<%# Eval("busprice") %>' Width="50"></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lblbusprice" runat="server" Text='<%# Eval("busprice") %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="forumrow" Width="50px" />
                                <HeaderStyle BackColor="#B8DEDC" CssClass="forumrow" ForeColor="Black" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="图片">
                                <EditItemTemplate>
                                <asp:FileUpload ID="FileUpBuspicture" runat="server" Width="150px" />
                                    <asp:Label ID="lblbuspicture" runat="server" Text='<%# Eval("buspicture") %>' Visible="false"></asp:Label>
                                    <asp:Label ID="LabDateTime" runat="server" Text='<%# Eval("BusDate") %>' Visible="false"></asp:Label>
                                    
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <a href='../<%# Eval("buspicture") %>' target="_blank">点击查看</a>
                                </ItemTemplate>
                                <ItemStyle CssClass="forumrow" Width="200px" />
                                <HeaderStyle BackColor="#B8DEDC" CssClass="forumrow" ForeColor="Black" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="备注">
                                <EditItemTemplate>
                                    <asp:TextBox ID="txtbusdescription" runat="server" Text='<%# CommondXyq.ReplaceTagChar2(DataBinder.Eval(Container.DataItem, "busdescription").ToString()) %>' Rows="3" TextMode="MultiLine" Width="200px"></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <%# Eval("busdescription") %>
                                </ItemTemplate>
                                <ItemStyle CssClass="forumrow" />
                                <HeaderStyle BackColor="#B8DEDC" CssClass="forumrow" ForeColor="Black" />
                            </asp:TemplateField>
                            <asp:CommandField HeaderText="Edit" ShowDeleteButton="True" ShowEditButton="True"  >
                                <HeaderStyle BackColor="#B8DEDC" ForeColor="Black" />
                                <ItemStyle CssClass="forumrow" Width="60px"  />
                            </asp:CommandField>
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
